<template>
  <div>
    <van-list
      v-model="loading"
      :finished="finished"
      finished-text="没有更多了"
    >
      <van-cell @click="cellClick(item)" v-for="(item,index) in searchTipsArr" :key="index" :title="item" />
    </van-list>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [1, 2, 3, 4, 5],
      loading: false,
      finished: true,
    };
  },
  props: ["searchTipsArr"],
  methods:{
    cellClick(val){
      console.log(val);
      this.$emit('cellClick',val)
    }
  }
};
</script>
 
<style lang = "less" scoped>
</style>